/*
* 埋点需求: requirement
* */

import http from "../http";
// 新增
const requirementAdd = (params) => http ({ method: 'post',  url: '/behavior/req/add', data: params});
// 状态变更
const requirementUpdateStatus = (params) => http ({ method: 'post',  url: '/behavior/req/update/status', data: params});
// 列表查询
const requirementList = (params) => http ({ method: 'post',  url: '/behavior/req/list', data: params});
// 修改
const requirementUpdate = (params) => http ({ method: 'post',  url: '/behavior/req/update', data: params});
// 详情
const requirementQuery = (params) => http ({ method: 'post',  url: '/behavior/req/query', data: params});
// 同步
const requirementSync = (params) => http ({ method: 'post',  url: '/behavior/req/sync', data: params});
// 同步需求列表
const requirementSyncList = (params) => http ({ method: 'post',  url: '/behavior/req/sync-list', data: params});
// 版本列表
const versionList = (params) => http ({ method: 'post',  url: '/behavior/version/list', data: params});
// 需求删除
const requirementDelete = (params) => http ({ method: 'post',  url: '/behavior/req/delete', data: params});
// H5活动链接新增
const activeLinkAdd = (params) => http ({ method: 'post',  url: '/behavior/active/link/add', data: params});
// H5页面列表
const activeLinkList = (params) => http ({ method: 'post',  url: '/behavior/active/link/list', data: params});
// H5页面删除
const activeLinkDelete = (params) => http ({ method: 'post',  url: '/behavior/active/link/delete', data: params});

const requirementApi = {
	requirementAdd,
	requirementQuery,
	requirementUpdate,
	requirementList,
	requirementUpdateStatus,
	requirementSync,
	requirementSyncList,
	versionList,
	requirementDelete,
	activeLinkAdd,
	activeLinkList,
	activeLinkDelete
}
export default requirementApi;
